suitedev
11/26/2019, 6:50 PMsterling_rose
11/26/2019, 6:52 PMMichael Pope
11/26/2019, 6:53 PMMichael Pope
11/26/2019, 6:54 PMsterling_rose
11/26/2019, 6:54 PMsuitedev
11/26/2019, 7:02 PMnull
-- why provide a useful url when you can provide null
suitedev
11/26/2019, 9:13 PMsuitedev
11/26/2019, 9:13 PM/**
* Get Links to the File Cabinet for a given Folder
*
* @param {string} folderId
* @returns {Object} links
* @param {string} links.link Direct path to folder in File Cabinet
* @param {string} links.uploadZip Direct path to upload multiple files via .zip for the given Folder
*/
function getFolderLink(folderId) {
var path = 'https://';
var domain = url.resolveDomain({ hostType: url.HostType.APPLICATION });
return {
link: path + domain + '/app/common/media/mediaitemfolders.nl?folder=' + folderId,
uploadZip: path + domain + '/app/common/media/importmediabatch.nl?folder=' + folderId
}
}